import com.guigu.xm.lq.service.impl.SysRolesServiceImpl;
import com.guigu.xm.lq.service.impl.SysUserRoleServiceImpl;
import com.guigu.xm.pojo.PageVo;
import com.guigu.xm.pojo.SysRoles;
import com.guigu.xm.pojo.SysUserRole;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class T1 {
    @Test
    public void t1(){
    ApplicationContext app = new ClassPathXmlApplicationContext("SpringApplicationConfing.xml");
        SysRolesServiceImpl bean = app.getBean(SysRolesServiceImpl.class);
        List<SysRoles> admin = bean.selectAllRoles("admin");
        System.out.println(admin);
    }
}
